function out = imfilter_sim(din, filt_coeff)

% out = conv2(din, filt_coeff, 'same');

out = imfilter(din, filt_coeff, 'replicate');